package com.zeyun.EasyOnlineShareCloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zeyun.EasyOnlineShareCloud.dao.entity.UserDO;
import com.zeyun.EasyOnlineShareCloud.dto.req.LoginReqDTO;
import com.zeyun.EasyOnlineShareCloud.dto.req.RegisterReqDTO;
import com.zeyun.EasyOnlineShareCloud.dto.resp.LoginRespDTO;

/**
 * 用户接口层
 */
public interface UserService extends IService<UserDO> {

	/**
	 * 用户登录
	 *
	 * @param requestParam 登录请求参数
	 * @return 用户信息
	 */
	LoginRespDTO login(LoginReqDTO requestParam);

	/**
	 * 注册用户
	 *
	 * @param requestParam 注册用户请求参数
	 */
	void register(RegisterReqDTO requestParam);

	/**
	 * 用户登出
	 */
	void logout();

}
